<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="X-UA-Compatible" content="IE=Edge，chrome=1">
<meta name="sogou_site_verification" content="ojP49dO3yi">
<meta name="360-site-verification" content="1524c7d232ff39b8b441133fe660d306">
                <link rel="stylesheet" type="text/css" href="/上海二手房_出售-搜房网_files/base.css">
     <!-- 列表页 -->
                                <title>【上海直售房|出租房】-搜房网 </title>
                <meta name="keywords" content="上海二手房，买房，搜房网，搜房，出售房源">
                <meta name="description" content="搜房网-上海二手房为您提供海量上海二手房房源及城市，区域，商圈，楼盘出售价格信息，还为您提供房源对比，明确您的需求，给您更好的体验！">
                        <link rel="stylesheet" type="text/css" href="/上海二手房_出售-搜房网_files/list.css">
            <link rel="icon" href="https://sh.sofang.com/favicon.ico" mce_href="https://sh.sofang.com/favicon.ico" type="image/x-icon">
        <meta name="我是别的页">

<script src="/上海二手房_出售-搜房网_files/hm.js.下载"></script><script src="/上海二手房_出售-搜房网_files/push.js.下载"></script><script type="text/javascript" src="/上海二手房_出售-搜房网_files/jquery1.11.3.min.js.下载"></script>
<script src="/上海二手房_出售-搜房网_files/village_detail.js.下载" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<input type="hidden" name="viewBill" value="c852cf35ac034fb67aa992221a732d93">
<!-- PC共用头部   可定义头部，自定义头部需要有logo返回首页和登录注册功能 -->
    <script src="/上海二手房_出售-搜房网_files/index3.js.下载"></script>

<div class="topbg headerTop clearfix">
    <div class="headbg">
        <div class="head detailHead clearfix">
            <h1 class="fl">
                <a href="https://sh.sofang.com/"><img src="/上海二手房_出售-搜房网_files/logo.png" alt="搜房网"></a>
            </h1>
            <ul class="fl nav">
                <li>
                    <a href="https://sh.sofang.com/">首页</a>
                </li>


                        <li style="display: none;">
                            <a href="https://sh.sofang.com/new/area" class="">新房</a>
                            <div class="nav_list">
                                <i class="arrow"></i>
                                <ul>
                                    <li><a href="https://sh.sofang.com/new/area">新楼盘</a></li>
                                    <li><a href="https://sh.sofang.com/new/area/ay1">本月开盘</a></li>
                                                                                                        </ul>
                            </div>
                        </li>

                        <li>
                            <a href="https://sh.sofang.com/esfrent/area" class="  ">租房</a>
                            <div class="nav_list">
                                <i class="arrow"></i>
                                <ul>
                                    <li><a href="https://sh.sofang.com/esfrent/area/ar1">整租房源</a></li>
                                    <li><a href="https://sh.sofang.com/esfrent/area/ar2">合租房源</a></li>
                                    <li><a href="https://sh.sofang.com/rentesb/area">找小区</a></li>
                                </ul>
                            </div>
                        </li>

                                                                                                                                                                                                                                                                                                                                                                                                                           <li style="display: none;">
                            <a href="https://sh.sofang.com/about/download.html" target="_blank">移动APP</a>
                        </li>
                            </ul>
            <ul class="fr top_r">
                                    <li class="logintip user">
                        <a href="http://127.0.0.1:6661/houseClient/gotoLogin" target="_blank">登录/注册</a>
                    </li>
                            </ul>
        </div>
    </div>
</div>
<script type="text/javascript">
	$(document).ready(function(e) {
        $(".top_r .user1").hover(function(){
		   $(this).addClass("click");
		   $(this).find("p").show();
		},function(){
		   $(this).removeClass("click");
		   $(this).find("p").hide();
		});
    });
</script>
<!-- PC共用头部  end -->


        <script src="/上海二手房_出售-搜房网_files/housecompare.js.下载"></script>
    <script src="/上海二手房_出售-搜房网_files/point_interest.js.下载"></script>
    <script src="/上海二手房_出售-搜房网_files/list.js.下载"></script>
    <script src="/上海二手房_出售-搜房网_files/village_detail.js.下载"></script>
    <script type="text/javascript" src="/上海二手房_出售-搜房网_files/commmenAdvertising.js.下载"></script>
    <link rel="stylesheet" href="/上海二手房_出售-搜房网_files/indexcommon.css">
    <div class="ad_left" id="advertising0">
            </div>
    <div class="ad_right" id="advertising1">
            </div>
    <div class="village_con">
  <div class="search_con clearfix">
    <div class="village_search clearfix">
        <form action="https://sh.sofang.com/esfsale/area" id="build" method="get">
                        <input type="text" class="txt fl" tp="spsale" autocomplete="off" id="keyword" value="" onclick="$(this).focus();" name="kw" placeholder="请输入关键字(楼盘名)">
            <input type="button" id="searchBtn" class="btn fl" value="搜索">
        </form>
        <input type="hidden" id="linkurl" value="/esfsale/area">
        <input type="hidden" id="par" value="">
        <input type="hidden" id="token" value="m3Imt7e5Otg4SPYZqogGzyxw7llspsoURPfdFscn">
    </div>
    <div class="mai mai1" style="display: none;">
        <ul class="search_lsit" style="display: none;">
        </ul>
    </div>
  </div>
</div>
<script type="text/javascript">
    var houseurl = $('#linkurl').val();
    var url = $('#par').val();
    /** 关键字下拉搜索 **/
    var num = -1;
    var searchKeyWords = {keyword:'', tp:'', tp1:'', sr:'', obj:null};
    $("#searchBtn").on('click',function(){
        var kw = 'kw='+$('#keyword').val().replace(/(^\s*)|(\s*$)/g,'');
        window.location.href = houseurl+'/'+url+'?'+kw;
    });
    $('#keyword').on('keyup focus', function(ev){
        var obj  = $(this);
        if(ev.keyCode == 40){
            num++;
            navSelectNextWord(obj);
            return false;
        }else if(ev.keyCode == 38){
            num--;
            navSelectLastWord(obj);
            return false;
        }else if( ev.keyCode == 13){
            var kw = 'kw='+$('#keyword').val().replace(/(^\s*)|(\s*$)/g,'');
            url = zhunhuan(url,'ba');
            if(kw !='kw='){
                window.location.href = houseurl+'/'+url+'?'+kw;
            }else{
                window.location.href = houseurl+'/'+url;
            }
        }else if( ev.keyCode == 37 || ev.keyCode == 39){
            return false;
        }else{
            var xtp = $(obj).attr('tp');
            var val = $.trim($(obj).val());
            if(xtp =='new' || xtp =='shops' || xtp =='office' || xtp =='villa'){
                searchKeyWords.tp = 'new';
                searchKeyWords.sr = 2;
                if(xtp =='new' || xtp =='villa'){
                    searchKeyWords.tp1 = '3';
                }else if(xtp =='office'){
                    searchKeyWords.tp1 = '2';
                }else{
                    searchKeyWords.tp1 = '1';
                }
            }else{
                searchKeyWords.tp = 'old';
                if(xtp == 'saleesb'){
                    searchKeyWords.tp1 = '3';
                    searchKeyWords.sr = 2;
                }else if(xtp == 'rentesb'){
                    searchKeyWords.tp1 = '3';
                    searchKeyWords.sr = 1;
                }else{
                    if(xtp.indexOf("sale") == '-1'){
                        searchKeyWords.sr = 1;
                        if(xtp == 'esfrent' || xtp == 'bsrent'){
                            searchKeyWords.tp1 = '3';
                        }else if(xtp == 'xzlrent'){
                            searchKeyWords.tp1 = '2';
                        }else{
                            searchKeyWords.tp1 = '1';
                        }
                    }else{
                        searchKeyWords.sr = 2;
                        if(xtp == 'esfsale' || xtp == 'bssale'){
                            searchKeyWords.tp1 = '3';
                        }else if(xtp == 'xzlsale'){
                            searchKeyWords.tp1 = '2';
                        }else{
                            searchKeyWords.tp1 = '1';
                        }
                    }
                }
            }
            searchKeyWords.keyword = val;
            searchKeyWords.obj = obj;
            //console.log(searchKeyWords);
            x_getRecommend(searchKeyWords);
            $('.mai').show();
        }
    });
    $(document).click(function(ev){
        //alert(ev.target.className.indexOf('border_blue'))
        if(ev.target.className.indexOf('border_blue')==-1){
            $('div.mai').hide();
        }
    });
    //楼盘搜索
    var versionNum = 0;
    function x_getRecommend(searchKeyWords){
        var token = "m3Imt7e5Otg4SPYZqogGzyxw7llspsoURPfdFscn";
        var x_url = '/home_search_only';
        versionNum++;
        $.ajax({
            type:'get',
            url:x_url,
            data:{
                _token:token,
                keywords:searchKeyWords.keyword,
                tp:searchKeyWords.tp,
                tp1:searchKeyWords.tp1,
                sr:searchKeyWords.sr,
                v:versionNum
            },
            success:function(data){
                if(data == 0){
                    searchKeyWords.obj.next('.mai').html('');
                    return false;
                }
                if (parseInt(data.versionNum) == versionNum) {
                    data = data.res;
                    //var dataList = '<ul class="search_lsit">';
                    var dataList = '';
                    for( var i in data){
                        var comName  = data[i]._source.name ? data[i]._source.name : data[i]._source.communityName;
                        if(typeof comName != 'undefined'){
                            dataList += '<li><a class="selectSearch" value="'+ data[i]._source.id +'">'+ comName +'</a></li>';
                        }
                    }
                    //dataList += '</ul>';
                    //searchKeyWords.obj.next('.mai').html(dataList);
                    //searchKeyWords.obj.next('.mai').show();
                    //$(".search_con").append(dataList);
                    $(".search_lsit").html(dataList);
                    $(".search_lsit").show();
                    if($('#searchStatus').val() == 1){
                        $('.selectSearch').click(function(){
                            window.location.href = '/checkprice/'+$(this).attr('value');
                        });
                    }else{
                        $('.selectSearch').click(function(){
                            var kw = 'kw='+$(this).text().replace(/(^\s*)|(\s*$)/g,'');//encodeURI(encodeURI($('#keyword').val()))
                            url = zhunhuan(url,'ba');
                            if(kw !='kw='){
                                window.location.href = houseurl+'/'+url+'?'+kw;
                            }else{
                                window.location.href = houseurl+'/'+url;
                            }
                        });
                    }
                }
            }
        });
    }

    // 查出搜索的关键字后，可以通过导航键来选择下一个
    function navSelectNextWord(obj){
        var mai = obj.parent().parent().next().find('li');
        $(mai).css('background-color', '#fff');
        var m   = mai.length;
        if(num >=  m ){
            num = 0;
            $(mai[num]).css('background-color', '#e8e8e8');
            obj.val( $(mai[num]).children('a').text() );

        }else{
            $(mai[num]).css('background-color', '#e8e8e8');
            obj.val( $(mai[num]).children('a').text() );
        }
//        setCursorPosition($('#keyword'), $('#keyword').val().length);
    }
    // 查出搜索的关键字后，可以通过导航键来选择上一个
    function navSelectLastWord(obj){
        var mai = obj.parent().parent().next().find('li');
        $(mai).css('background-color', '#fff');
        var m   = mai.length;
        if(num < 0){
            num = m - 1 ;
            $(mai[num]).css('background-color', '#e8e8e8');
            obj.val( $(mai[num]).children('a').text() );

        }else{
            $(mai[num]).css('background-color', '#e8e8e8');
            obj.val( $(mai[num]).children('a').text() );
        }
//        setCursorPosition($('#keyword'), $('#keyword').val().length);
    }
    //获取已选择条件的链接
    function zhunhuan(url,par,pid){
        url = url.replace(/bl[\w\|,]*/,'bl1');//默认为第一页
        if(par =='aa'){
            url = url.replace(/ab[\w,]*/,'');
        }
        if(par =='ac'){
            url = url.replace(/ad[\w,]*/,'');
        }
        var urls = [];
        if(url.length != 0){
            urls = url.split('-');
            if(par =='aa'){
                urls = xunique(urls);
            }
        }
        if(par =='bh'){
            for(var i in urls){
                if(urls[i].substr(0,2) == 'bh'){
                    var pp = urls[i].substr(2).replace(pid,'');
                    if(pp !=''){
                        pp = xunique(pp.split('|'));
                        urls[i] = 'bh'+pp.join('|');
                    }else{
                        urls.splice(i,1);
                    }
                }
            }
        }else{
            for(var i in urls){
                if(urls[i].substr(0,2) == par){
                    urls.splice(i,1)
                }
            }
        }
        if(urls.length == 0){
            return '';
        }else{
            return urls.join('-');
        }
    }
    window.onclick = function(ev){
        if(!checkParent(ev.target, 'mai1')){
            hideSearchList();
        }
    }
    function hideSearchList(){
        $('.search_lsit').hide();
    }
    // 计算出该次事件对象e 的 父元素是否有class 'par'
    function checkParent(e, par){
        if(!e.parentNode) return false;
        if(e.parentNode.className && e.parentNode.className.split(' ').indexOf(par) >= 0 ){
            return true;
        }else{
            return checkParent(e.parentNode, par);
        }
    }
    /** 关键字下拉搜索结束 **/
</script>    <p class="route">
        <span>您的位置：</span>
        <a href="https://sh.sofang.com/">首页</a>
        <span>&nbsp;&gt;&nbsp;</span>
        <a href="https://sh.sofang.com/esfsale/area">房源搜索</a>
                    </p>
    <div class="search_list">
        <p class="search_nav clearfix">
                                        <span>区域查询</span>



                                                                            </p>
        <div class="search_info">
            <input type="hidden" id="token" name="_token" value="m3Imt7e5Otg4SPYZqogGzyxw7llspsoURPfdFscn">
            <input type="hidden" id="linkurl" value="/esfsale/area">
            <input type="hidden" id="par" value="">
            <!--根据子类显示不同的选项-->
                                            <dl>

                </dl>

            <dl>
                <dt>
                                            总价：&nbsp;
                    </dt>
                <dd class="prc">
                                                                                                                                                                                    <a href="https://sh.sofang.com/esfsale/area/" class="colorR acon">不限</a>
                                                                                                                                                                                    <a href="https://sh.sofang.com/esfsale/area/ao1">100万以下</a>
                                                                                                                <a href="https://sh.sofang.com/esfsale/area/ao2">100-150万</a>
                                                                                                                <a href="https://sh.sofang.com/esfsale/area/ao3">150-200万</a>
                                                                                                                <a href="https://sh.sofang.com/esfsale/area/ao4">200-250万</a>
                                                                                                                <a href="https://sh.sofang.com/esfsale/area/ao5">250-300万</a>
                                                                                                                <a href="https://sh.sofang.com/esfsale/area/ao6">300-500万</a>
                                                                                                                <a href="https://sh.sofang.com/esfsale/area/ao7">500-800万</a>
                                                                                                                <a href="https://sh.sofang.com/esfsale/area/ao8">800-1000万</a>
                                                                                                                <a href="https://sh.sofang.com/esfsale/area/ao9">1000万以上</a>

                    <span class="unit">
                                                    单位（万元）
                                            </span>
                    <input type="text" class="txt startprice" value="">
                    <i></i>
                    <input type="text" class="txt endprice" value="">
                    <input type="button" class="btn avgbtn" value="确定">
                </dd>
            </dl>
            <!--面积-->
                            <dl>
                    <dt>面积：&nbsp;</dt>
                    <dd class="prc">
                                                                                                                                                                                                                                                    <a href="https://sh.sofang.com/esfsale/area/" class="colorR acon">不限</a>
                                                                                                                                                                                                                    <a href="https://sh.sofang.com/esfsale/area/ap1">50平米以下</a>
                                                                                                                                            <a href="https://sh.sofang.com/esfsale/area/ap2">50-70平米</a>
                                                                                                                                            <a href="https://sh.sofang.com/esfsale/area/ap3">70-90平米</a>
                                                                                                                                            <a href="https://sh.sofang.com/esfsale/area/ap4">90-110平米</a>
                                                                                                                                            <a href="https://sh.sofang.com/esfsale/area/ap5">110-130平米</a>
                                                                                                                                            <a href="https://sh.sofang.com/esfsale/area/ap6">130-150平米</a>
                                                                                                                                            <a href="https://sh.sofang.com/esfsale/area/ap7">150-200平米</a>
                                                                                                                                            <a href="https://sh.sofang.com/esfsale/area/ap8">200-300平米</a>
                                                                                                                                            <a href="https://sh.sofang.com/esfsale/area/ap9">300平米以上</a>

                                            <!--写字楼显示手动输入面积-->

                    </dd>
                </dl>
                                                    <dl>
                    <dt>户型：&nbsp;</dt>
                    <dd class="prc">
                                                                                                                                        <a href="https://sh.sofang.com/esfsale/area/" class="colorR acon" attr="0">不限</a>
                                                                                                                                                                    <a href="https://sh.sofang.com/esfsale/area/aq1">一居</a>
                                                                                                                                <a href="https://sh.sofang.com/esfsale/area/aq2">二居</a>
                                                                                                                                <a href="https://sh.sofang.com/esfsale/area/aq3">三居</a>
                                                                                                                                <a href="https://sh.sofang.com/esfsale/area/aq4">四居</a>
                                                                                                                                <a href="https://sh.sofang.com/esfsale/area/aq5">五居</a>
                                                                                                                                <a href="https://sh.sofang.com/esfsale/area/aq6">五居以上</a>
                                                                                </dd>
                </dl>
                    </div>
        <!--更多条件开始-->
                <!--更多条件结束-->
    </div>
    <div class="list_info clearfix">
        <div class="list_l">
            <div class="tab_nav">
                <p class="tab_l">
                                                                                                                <span class="house" href="/esfsale/area" alt="">全部房源</span>

                                                    </p>
                </p>
            </div>
            <!--房源置顶开始-->
                        <!--房源置顶结束-->
            <!--付费房源s-->
                        <!--付费房源结束-->
            <!--免费房源开始-->
                        <div class="list list_free">
                            <p class="spread"><span>推荐</span></p>

                            <dl th:each="es : ${esSearchList}">
                                <dt>
                                    <a href="https://sh.sofang.com/housedetail/ss2022100000002179.html" target="_blank"><img th:src="${es.defaultImage}" alt="房源图片"></a>
                                </dt>
                                <dd class="house_msg">
                                    <p class="name">
                                        <a href="https://sh.sofang.com/housedetail/ss2022100000002179.html" target="_blank"><span th:text="${es.housesName}"></span></a>
                                    </p>

                                    <div class="house_info no_back">
                                        <p class="area clearfix">
                                            <a href="https://sh.sofang.com/esfsale/area/ba136383"><strong th:text="${es.houseName}"></strong></a>
                                             <span th:text="${es.housesAddress}" class="address"></span>
                                            <i></i>
                                            </a>
                                        </p>
                                        <p class="type clearfix">
                                            <h3><span>所在省份：</span>[(${es.city})]</h3>
                                            <span>房源详细信息：</span>
                                            <span th:text="${es.area}" style="color: #006DD3"></span><span>平米</span>

                                            <span th:text="${es.bedRoom}" style="color: #006DD3"></span><span>室</span><span th:text="${es.livingRoom}"></span><span>厅</span><span th:text="${es.restroom}"></span><span>卫</span><span th:text="${es.kitchen}"></span><span>厨</span>

                                            <span th:text="${es.totalStorey}" style="color: #006DD3"></span><span>/</span><span th:text="${es.storey}"></span><span>层</span>

                                            <span>朝向：</span>
                                            <span th:text="${es.orientation==1? '南' : es.orientation==2? '北' : es.orientation==3? '东' : '西'}" style="color: #006DD3"></span>

                                            <span>建筑年代：</span>
                                            <span th:text="${es.houseYear}" style="color: #006DD3"></span><span>年</span>
                                        </p>
                                        <p class="tag clearfix">
                                            <a class="broker_name" href="https://sh.sofang.com/brokerinfo/843648.html" target="_blank">
                                                <span>经纪人姓名：</span><span th:text="${es.myName}" style="color:orangered"></span>
                                            </a>
                                    </div>
                                </dd>
                                <dd class="house_price">
                                    <p class="price">
                                        <span class="font" th:text="${es.totalPrice}"></span>
                                    </p>
                                    <p class="junjia">
                                        <span th:text="${es.everyPrice}"></span>元/㎡
                                    </p>
                                    <p class="show">
                                        <a><span class="focus" value="2022100000002179,2,3,0"><i class="follow"></i><span>关注</span></span></a>
                                    </p>
                                </dd>
                            </dl>
                        </div>
                     <div class="page_nav">
                        <ul>
                            <li class="click">1</li><li><a href="https://sh.sofang.com/esfsale/area/bl2?" alt="2" class="page">2</a></li><li><a href="https://sh.sofang.com/esfsale/area/bl3?" alt="3" class="page">3</a></li><li><a href="https://sh.sofang.com/esfsale/area/bl4?" alt="4" class="page">4</a></li><li><a href="https://sh.sofang.com/esfsale/area/bl5?" alt="5" class="page">5</a></li><li class="no_border">...</li><li><a href="https://sh.sofang.com/esfsale/area/bl200?" alt="200" class="page">200</a></li><li class="right"><a href="https://sh.sofang.com/esfsale/area/bl2?" alt="2" class="page">下一页</a></li><li><a href="https://sh.sofang.com/esfsale/area/bl200?" alt="200" class="page">尾页</a></li>
                        </ul>
                    </div>
                    </div>
        <div class="house_r">
            <div class="house">
                <a href="https://sh.sofang.com/houseHelp/sale/xq" class="rent"><i></i>业主出售</a>
                <a href="https://sh.sofang.com/houseHelp/sale/xq/entrust" class="entrust"><i></i>委托出售</a>
                <a href="https://yssf.qiyukf.com/client?k=ce6b4d6bf31c1d121a48cd5454e54b6b&wp=1&robotShuntSwitch=0&shuntId=0&language=zh-cn" class="entrust"><i></i>在线咨询</a>
                <a href="/toSearch/VrHouse" class="entrust"><i></i>查看测试全景图1</a>
                <a href="/toSearch/VrHouseTwo" class="entrust"><i></i>查看测试全景图2</a>
                <a href="/toSearch/lookMap" class="entrust"><i></i>查看百度地图接口</a>
            </div>
                            <div class="list_adv" id="list_adv0" style="display: none;"></div>
                <div class="list_adv" id="list_adv1" style="display: none;"></div>
                <div class="list_adv" id="list_adv2" style="display: none;"></div>
                <script type="text/javascript" src="/上海二手房_出售-搜房网_files/adShow.php"></script>
                <script type="text/javascript" src="/上海二手房_出售-搜房网_files/adShow(1).php"></script>
                <script type="text/javascript" src="/上海二手房_出售-搜房网_files/adShow(2).php"></script>
            </div>
    </div>


<div id="no_data_bj" style="display: none;" data="332">
    敬告搜房用户：为进一步规范新房发布，自本日起对本网站房源进行核实中！
</div>
  <script type="text/javascript" src="/上海二手房_出售-搜房网_files/highcharts.js.下载"></script>
  <script th:inline=none>
    //城市城区商圈价格趋势
    $(function(){
      var data = [ [202204,202205,202206,202207,202208,202209],[57112,63318,57816,56293,58155,58155] ];
      var punit = "元/平";
      $("#price_chart").highcharts({
        credits: enabled = false,
        xAxis: {
          tickInterval: 1,
          categories: data[0],
          labels: {
            formatter: function () {
              return this.value.toString().substr(4, 2) + "月";
            }
          }
        },
        title: {
          text: '',
          x: 0,
          //align:'left'
        },
        yAxis: {
          title: {
            text: null
          },
          plotLines: [{
            value: 0,
            width: 1,
            color: '#808080'
          }],
          lineWidth: 1,
          labels: {
            formatter: function () {
              return Highcharts.numberFormat(this.value, 0, '.', ',');
            }
          }
        },
        tooltip: {
          valueSuffix: punit
        },
        legend: {
          enabled: false,
          layout: 'horizontal',
          align: 'right',
          verticalAlign: 'top',
          borderWidth: 0
        },
        series: [{
          name: '价格',
          data: data[1]
        }]
      });
    });
  </script>

<script>
  //底部切换
  function webMpe(name, curr,obj) {
    var num=$(obj).parent().find('a').length;
    console.log(num);
    for (i = 1; i <= num; i++) {
      var menu = document.getElementById(name + i);
      var cont = document.getElementById("con_" + name + "_" + i);
      menu.className = i == curr ? "colorR" : "";
      if (i == curr) {
        cont.style.display = "block";
      } else {
        cont.style.display = "none";
      }
    }
  }
  //城区切换
  function webMpe2(name, curr,obj) {
    var num=$(obj).parent().find('a').length;
    for (i = 1; i <= num; i++) {
      var menu = document.getElementById(name + i);
      var cont = document.getElementById("con_" + name + "_" + i);
      if(!(cont === null)){
        menu.className = i == curr ? "colorR" : "";
        if (i == curr) {
          cont.style.display = "block";
        } else {
          cont.style.display = "none";
        }
      }


    }
  }
  //已选择条件
  var condition = [];
  $('.acon').each(function(){
    if($(this).text() != '不限'){
      condition.push($(this).text());
    }
  });
  if(condition.length != 0){
    $('#condition').text(condition.join('+'));
  }else{
    if ($('#no_data_bj').attr('data') == 1) {
        $('.no_data').text($('#no_data_bj').html);
    } else {
        $('.no_data').text('很抱歉，没有找到相符的结果！');
    }
  }

  var xsearch = window.location.search;
  //均价输入框提交
  $('.avgbtn').bind('click',function(){
    var startprice = $('.startprice').val();
    var endprice = $('.endprice').val();
    var patt = /^\d+(\.?\d{1,2})?$/;
    if(!patt.test(startprice) || !patt.test(endprice)){
      alert('请正确填写信息');
      return false;
    }
    if(startprice == '' || endprice== ''){
      alert('请输入开始价格或结束价格！');
      return false;
    }
    if(parseInt(startprice) >= parseInt(endprice)){
      alert('请保证结束价格大于开始价格！');
      return false;
    }
    var areaurl = zhunhuan(url,'ao');
    areaurl = zhunhuan(areaurl,'bm');
    var areabtn = 'bm'+startprice+','+endprice;
    if(areaurl == ''){
      areaurl = [];
    }else{
      areaurl = areaurl.split('-');
    }
    areaurl.push(areabtn);
    areaurl = areaurl.join('-');
    window.location.href = houseurl+'/'+areaurl+xsearch;
  });

  //获取已选择条件的链接
  function zhunhuan(url,par,pid){
    url = url.replace(/bl[\w\|,]*/,'bl1');//默认为第一页
    if(par =='aa'){
      url = url.replace(/ab[\w,]*/,'');
    }
    if(par =='ac'){
      url = url.replace(/ad[\w,]*/,'');
    }
    var urls = [];
    if(url.length != 0){
      urls = url.split('-');
      if(par =='aa'){
        urls = xunique(urls);
      }
    }
    if(par =='bh'){
      for(var i in urls){
        if(urls[i].substr(0,2) == 'bh'){
          var pp = urls[i].substr(2).replace(pid,'');
          if(pp !=''){
            pp = xunique(pp.split('|'));
            urls[i] = 'bh'+pp.join('|');
          }else{
            urls.splice(i,1);
          }
        }
      }
    }else{
      for(var i in urls){
        if(urls[i].substr(0,2) == par){
          urls.splice(i,1)
        }
      }
    }
    if(urls.length == 0){
      return '';
    }else{
      return urls.join('-');
    }
  }
  //面积输入框提交
  $('.areabtn').bind('click',function(){
    var startarea = $('.startarea').val();
    var endarea = $('.endarea').val();
    var patt = /^\d+(\.?\d{1,2})?$/;
    if(!patt.test(startarea) || !patt.test(endarea)){
      alert('请正确填写信息');
      return false;
    }
    if(startarea == '' || endarea== ''){
      alert('请输入开始面积或结束面积！');
      return false;
    }
    if(parseInt(startarea) >= parseInt(endarea)){
      alert('请保证结束面积大于开始面积！');
      return false;
    }
    var areaurl = zhunhuan(url,'ap');
    areaurl = zhunhuan(areaurl,'bn');
    var areabtn = 'bn'+startarea+','+endarea;
    if(areaurl == ''){
      areaurl = [];
    }else{
      areaurl = areaurl.split('-');
    }
    areaurl.push(areabtn);
    areaurl = areaurl.join('-');
    window.location.href = houseurl+'/'+areaurl+xsearch;
  });

  /* 配套下拉 */
  $(".term1").click(function (event) {
    $(".list_tag").hide();
    $("#pt").fadeIn();
    $(document).one("click", function () {//对document绑定一个影藏Div方法
      $("#pt").hide();
    });
    event.stopPropagation();//点击 www.it165.net Button阻止事件冒泡到document
  });
  $(".list_tag").click(function (event) {
    event.stopPropagation();//在Div区域内的点击事件阻止冒泡到document
  });
  $(".list_tag li").click(function(){
    $(this).parents().find(".list_tag").hide();
  });

  $('.btn_true').bind('click',function(){
    var x_pei=[];
    $('input[name=peichild]:checked').each(function(){
      x_pei.push($(this).val());
    });
    if(url !=''){
      url = url.split('-');
      for(var i in url){
        if(url[i].substr(0,2) == 'bh'){
          url.splice(i,1)
        }
      }
      url.push('bh'+x_pei.join("|"));
      url = url.join('-');
      window.location.href=houseurl+'/'+url+xsearch;
    }else{
      url = [];
      url.push('bh'+x_pei.join("|"));
      url = url.join('-');
      window.location.href=houseurl+'/'+url+xsearch;
    }
  });
</script>
    <ul class="right_nav" id="right_nav" style="display: block;bottom: 160px;">

                                    <li class="backtop" style="height: 42px; padding: 8px 0px 9px; margin-bottom: 6px; overflow: hidden;">
        <a href="javascript:;">
            <i></i>
        </a>
    </li>

</ul>
<a href="http://bj.sofang.com/sofangAPP/index.html" target="_blank">
<img src="/上海二手房_出售-搜房网_files/sofang_APP.png" id="sofang_load" style="display: none;position: fixed;bottom:158px;right:58px;">
</a>
<script>
    $(document).ready(function(e) {
        $('#right_nav li').eq(0).css({'height':'42px',padding:'8px 0 9px',marginBottom:'6px',overflow:'hidden'});
        $('#right_nav li').eq(1).css({'height':'42px',padding:'8px 0 9px',marginBottom:'6px',overflow:'hidden'});
    });
    $("#sofang_load_a").on("mouseover",function(){
           $("#sofang_load").show();
    });
    $("#sofang_load_a").on("mouseout",function(){
        $("#sofang_load").hide();
    });
    $("#sofang_load").on("mouseout",function(){
        $("#sofang_load").hide();
    });
    $("#sofang_load").on("mouseover",function(){
        $("#sofang_load").show();
    });
    $('.right_nav li').on("mouseover",function(){
        $('.right_nav li').siblings().removeClass('current');
        $(this).addClass('current');
    });
    $('.right_nav .backtop').on('click',function(){
        var n=$(document).scrollTop();
        var timer=setInterval(function(){
            n-=110;
            $(document).scrollTop(n);
            if(n<=0){
                clearInterval(timer);
            }
        },30);
    });
</script>
    <script>
        //关注方法
        point_interest('focus', 'xcy');

        var _token = $('#token').val();
        $(function () {


        });
        function staClick(id, st, type) {
            var styles;
            var csale = [];
            var crent = [];
            if (st == 't') {
                styles = 'housestickstatus';
            } else if (st == 'p') {
                styles = 'houseputstatus';
            }
            if (type == 's') {
                csale.push(id);
            }
            if (type == 'r') {
                crent.push(id);
            }
            if (csale.length > 0 || crent.length > 0) {
                $.post("/ajax/clickstatistic/click", {
                    'sty': styles,
                    'sale': csale,
                    'rent': crent,
                    '_token': _token
                }, function (m) {

                });
            }
        }
    </script>
            <script type="text/javascript" src="/上海二手房_出售-搜房网_files/adShow(3).php"></script>
        <script type="text/javascript" src="/上海二手房_出售-搜房网_files/adShow(4).php"></script>
        <style>
        .litterSpan{
            width:36px;
            height:17px;
            font-size:12px;
            font-weight:400;
            color:rgba(142,142,142,1);
            line-height:17px;
            margin-right: 7px;
        }
        .verify_i{
            background: url(/image/ic_safe.png) !important;
        }
        .info_r .info{
            width: 550px!important;
        }
    </style>
<!--PC自定义代码填写start-->
<!--PC自定义代码填写end-->

<!-- PC共用尾部   可定义尾部 -->

<script>
  if(parseInt('332') == 144){
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?5e6ab07ba487ab82aabfe5051b2d98ef";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  }
</script>
<script type="text/javascript">
  $(function(){
    $.ajax({
      type:"POST",
      url:'/about/takenotes',
      data:{_token:"m3Imt7e5Otg4SPYZqogGzyxw7llspsoURPfdFscn"},
      success:function(data){
      },
      error:function(){
      }
    });
  });
	var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
	document.write(unescape("%3Cspan id='cnzz_stat_icon_1262285598'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s13.cnzz.com/z_stat.php%3Fid%3D1262285598 ' type='text/javascript'%3E%3C/script%3E"));
</script><span id="cnzz_stat_icon_1262285598"></span><script src="/上海二手房_出售-搜房网_files/z_stat.php" type="text/javascript"></script>

<!-- PC共用尾部  end -->
<script type="text/javascript" src="/上海二手房_出售-搜房网_files/weblog.js.下载"></script>
<script type="text/javascript" src="/上海二手房_出售-搜房网_files/jquery.md5.js.下载"></script>
<!-- PC不可修改 -->
<script>
    $(document).ready(function(e) {
        $(this).keydown(function (e){
            if(e.which == "13"){
                $("#login").click();
            }
        })
    });
    $('#lproname').val('');
    $('#lpropwd').val('');
</script>
<script>
    (function(){
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
        }
        else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
</script>


    <script>
        var _hmt = _hmt || [];
        var key = 'bc2dcba98591e113d6329631910c965b';
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?" + key;
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>

<!-- PC不可修改 end-->
</body></html>
